home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Developer Helper 1: Phil & Dave's Excellent CD
/
Phil and Dave's Excellent CD HFS Files.7z
/
Phil and Dave's Excellent CD HFS Files
/
Peripherals
/
HyperScan
/
HyperScan 1.0
/
card_19496.txt
< prev
next >
Wrap
Text File
|
1989-02-26
|
10KB
|
441 lines
-- card: 19496 from stack: in.0
-- bmap block id: 4382
-- flags: 4000
-- background id: 18320
-- name: Welcome
----- HyperTalk script -----
on toggleAboutBox
if visible of card field "About"
then
lock screen
hide card field "About"
hide button "Install"
unlock screen with iris close
else
lock screen
show card field "About"
show button "Install"
unlock screen with zoom open
end if
end toggleAboutBox
on closeCard
if the userLevel < 4 then set the userLevel to 4
end closeCard
-- part 32 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=63 top=49 right=255 bottom=447
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
toggleAboutBox
end mouseUp
-- part 23 (button)
-- low flags: 80
-- high flags: 8003
-- rect: left=65 top=11 right=33 bottom=138
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Magic
----- HyperTalk script -----
on mouseUp
set hilite of me to true
lock screen
go to card "Portrait"
put not visible of button "Scan 2" into showHide
set visible of button "Scan 2" to showHide
set visible of button "Scan 8" to showHide
set visible of button "Scan 32" to showHide
go to card "Landscape"
set visible of button "Scan 2" to showHide
set visible of button "Scan 8" to showHide
set visible of button "Scan 32" to showHide
go to first card
set hilite of me to false
set visible of me to showHide
unlock screen
end mouseUp
-- part 24 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=465 top=0 right=41 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 2478 / 2478
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
toggleAboutBox
end mouseUp
-- part 25 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=1 top=0 right=44 bottom=52
-- title width / last selected line: 0
-- icon id / first selected line: 1011 / 1011
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Home
----- HyperTalk script -----
on mouseUp
visual effect iris close
go home
end mouseUp
-- part 26 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=57 top=275 right=318 bottom=112
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Help
----- HyperTalk script -----
on mouseUp
visual effect zoom open
go first card of background "Help"
end mouseUp
-- part 27 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=128 top=274 right=321 bottom=171
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Portrait
----- HyperTalk script -----
on mouseUp
visual effect zoom open
go to card "Portrait"
end mouseUp
-- part 28 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=188 top=278 right=320 bottom=242
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Landscape
----- HyperTalk script -----
on mouseUp
visual effect zoom open
go to card "Landscape"
end mouseUp
-- part 29 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=260 top=278 right=319 bottom=312
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Halftone
----- HyperTalk script -----
on mouseUp
visual effect zoom open
go to card "Halftone"
end mouseUp
-- part 30 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=329 top=278 right=320 bottom=380
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Effects
----- HyperTalk script -----
on mouseUp
visual effect zoom open
go to card "Effects"
end mouseUp
-- part 31 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=399 top=276 right=318 bottom=454
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Images
----- HyperTalk script -----
on mouseUp
if the optionKey is up then
visual effect zoom open
go to stack "HyperScan Samples"
exit mouseUp
end if
put 1 + number of card "Effects" into cardNum
if cardNum > the number of cards
then answer "There are no saved image cards in this stack."
else
visual effect zoom open
go to card cardNum
end if
end mouseUp
-- part 33 (field)
-- low flags: 81
-- high flags: 2004
-- rect: left=62 top=14 right=272 bottom=450
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 2
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: About
----- HyperTalk script -----
on mouseUp
toggleAboutBox
end mouseUp
-- part 20 (button)
-- low flags: 80
-- high flags: 8000
-- rect: left=65 top=219 right=268 bottom=116
-- title width / last selected line: 0
-- icon id / first selected line: 16532 / 16532
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Install
----- HyperTalk script -----
on mouseUp
lock screen
set cursor to watch
show button "HyperScan"
select button "HyperScan"
doMenu "Copy Button"
hide button "HyperScan"
hide card field "About"
hide button "Install"
go home
repeat with i = 1 to the number of buttons
if the short name of button i is "HyperScan" then
go back
choose browse tool
answer "HyperScan button was already installed."
unlock screen with iris close
exit mouseUp
end if
end repeat
doMenu "Paste Button"
choose browse tool
set cursor to hand
unlock screen
get the mouseClick -- flush accidental double-click
put "Drag button to desired location, then click..."
repeat until the mouseClick
set loc of button "HyperScan" to the mouseLoc
end repeat
put empty into msg
end mouseUp
-- part 22 (button)
-- low flags: 80
-- high flags: 8000
-- rect: left=390 top=221 right=266 bottom=444
-- title width / last selected line: 0
-- icon id / first selected line: 16532 / 16532
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: HyperScan
----- HyperTalk script -----
on mouseUp
visual effect zoom open
go to stack "HyperScan"
end mouseUp
-- part 34 (field)
-- low flags: 81
-- high flags: 2004
-- rect: left=146 top=97 right=272 bottom=366
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 2
-- text size: 12
-- style flags: 0
-- line height: 15
-- part name: Directions 1
-- part 35 (button)
-- low flags: 80
-- high flags: 8003
-- rect: left=156 top=239 right=261 bottom=213
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Exit
-- part 36 (button)
-- low flags: 00
-- high flags: 0002
-- rect: left=1 top=323 right=341 bottom=35
-- title width / last selected line: 0
-- icon id / first selected line: 1300 / 1300
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
---find out WHERE on the icon you clicked
put (item 1 of the clickLoc) - (item 1 of the Loc of me) into E
---if the click was on the left then
if E < 0 then
set icon of me to 1301
wait 1
set icon of me to 1300
push card
put PathWay() & "SN Feedback" into feedPath
set cursor to watch
visual effect dissolve fast
go stack feedPath
---if the click was on the right then
else if E > 0 then
set icon of me to 1302
wait 1
set icon of me to 1300
global navMenu
visual effect iris close to black
visual effect iris open
if navMenu is empty then put "Welcome" into navMenu
go card navMenu of stack "Support Navigator:Support Navigator"
end if
end mouseUp
Function PathWay
put the long name of stack "Home" into NewName
delete char 1 to 7 of NewName
repeat
if offset(":",NewName) is 0 then
exit repeat
else
put char 1 to offset(":",NewName) of NewName after NewPath
delete char 1 to offset(":",NewName) of NewName
end if
end repeat
return NewPath
end PathWay
-- part contents for card part 33
----- text -----
HyperScan version 1.0
Copyright 1988 Apple Computer Inc.
written by Bill Atkinson, with help from
Sioux Lacy, Jim Palmer, Eric Quackenbush,
David Leffler, Robin Shank, James Redfern,
Susan Kare, Bruce Gee and Tad Browne.
This stack lets you use the Apple Scanner
to bring images into HyperCard.
Happy scans to you...
-- part contents for card part 34
----- text -----
To use HyperScan, you first choose a portrait or landscape orientation. Your choice depends on the sample you want to scan.
• For now, click the Portrait
icon to go to the Portrait card.